/**
 * Created by asus on 2017/10/9.
 */

public class Nums implements Comparable {
    private int num;
    public Nums(int num){
        this.num=num;
    }

    @Override
    public int compareTo(Object o) {

        if (num<((Nums)o).num){
            return   -1;
        }
        if (num==((Nums)o).num){
            return   0;
        }
        else
            return 1;
    }
}
